package com.online.questionnaire.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 模板申请记录
 * @TableName template_audit
 */
@TableName(value ="template_audit")
@Data
public class TemplateAudit implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 状态 0 待审核 1审核通过 2审核不通过
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 问卷id
     */
    @TableField(value = "surveyId")
    private Long surveyId;

    @TableField(exist = false)
    private String surveyTitle;

    /**
     * 申请用户
     */
    @TableField(value = "userId")
    private Long userId;

    @TableField(exist = false)
    private String userName;

    /**
     * 审核用户(申请人为管理员时 无需审核 审核人为自己)
     */
    @TableField(value = "auditUserId")
    private Long auditUserId;

    @TableField(exist = false)
    private String auditUserName;

    /**
     * 
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}